#define  _CRT_SECURE_NO_WARNINGS 1
#include"DList.h"

void test() {
	LTNode* plist=LTInit();

	LTPushBack(plist, 1);
	LTPushBack(plist, 2);
	LTPushBack(plist, 3);
	LTPushBack(plist, 4);
	LTprint(plist);
	printf("\n");

	LTNode* pos = LTFind(plist, 3);
	LTErase(pos);
	pos = LTFind(plist, 2);
	LTErase(pos);
	pos = NULL;

	//LTPushFront(plist, 1);
	//LTPushFront(plist, 2);
	//LTPushFront(plist, 3);
	//LTPushFront(plist, 4);
	//LTPopFront(plist);
	//LTPopFront(plist);
	//LTPopFront(plist);

	//LTInsert(plist->next->next, 100);

	//LTPopBack(plist);
	//LTPopBack(plist);

	LTprint(plist);
	LTDestrot(plist);
	plist == NULL;
}

int main() {
	test();
	return 0;
}